//
//  FinishReportViewController.m
//  Love trial1。0
//
//  Created by giantumbrella on 15/5/29.
//  Copyright (c) 2015年 赵娟. All rights reserved.
//

#import "FinishReportViewController.h"
#import "CommonMacro.h"
#import "SucessSubmitViewController.h"
@interface FinishReportViewController ()

@end

@implementation FinishReportViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"免费使用";
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self createView];
}

#pragma mark 创建视图
- (void)createView
{
#warning 这里是创建滚动视图
    //1.创建滚动视图
    UIImageView *scrollImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH,120)];
    scrollImageView.backgroundColor = [UIColor greenColor];
    [self.view addSubview:scrollImageView];
    
    //2.产品介绍视图
    UIView *bgView = [[UIView alloc] initWithFrame:CGRectMake(0, 180, SCREEN_WIDTH, 180)];
    bgView.backgroundColor = [UIColor cyanColor];
    [self.view addSubview:bgView];
    
    //3.参与方式
    UILabel *partInLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 360, SCREEN_WIDTH, 150)];
    partInLabel.backgroundColor = [UIColor greenColor];
    [self.view addSubview:partInLabel];
    
    //4.提交报告按钮
    UIButton *submitReportButton = [[UIButton alloc] initWithFrame:CGRectMake(10, SCREEN_HEIGHT-50, SCREEN_WIDTH-20, 40)];
    submitReportButton.backgroundColor = [UIColor cyanColor];
    [submitReportButton setTitle:@"已经完成" forState:UIControlStateNormal];
    [submitReportButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [self.view addSubview:submitReportButton];
    [submitReportButton addTarget:self action:@selector(finishReportDone) forControlEvents:UIControlEventTouchUpInside];
}

#pragma mark 跳到发表成功页面
- (void)finishReportDone
{
    SucessSubmitViewController *sucessSubmitView = [SucessSubmitViewController new];
    UINavigationController *naviSucessSubmit = [[UINavigationController alloc] initWithRootViewController:sucessSubmitView];
    [self.navigationController presentViewController:naviSucessSubmit animated:YES completion:nil];
}
#pragma mark 已经完成后会进行发表
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
